package com.gaohe.controller;

import com.gaohe.common.Result;
import com.gaohe.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/member")
public class MemberController {
    @Autowired
    private MemberService memberService;
    @GetMapping("/getMemberByUserId")
    public Result getMemberByUserId(Long userId){
        return memberService.getMemberByUserId(userId);
    }
}
